﻿using System;
using System.Threading;

namespace ConsoleAppBackgroundThread
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Thread thread = new Thread(Worker);
            //thread.IsBackground = true;
            thread.Start();
            Console.WriteLine("Returning from main!");
        }

        private static void Worker()
        {
            Thread.Sleep(10000);

            Console.WriteLine("Returning from worker");
            Thread.Sleep(2000);
        }
    }
}
